var express = require('express');
var router = express.Router();
var {adminDao,
  logDao,
  playerDao,
  raidDao,
  save
} = require('../data')

router.get('/', function(req, res, next) {
  res.status(404);
  res.end();
});


//dkp记录列表
router.post('/list',function(req,res,next){
  //raid,player:player.name,score,scoreType,reason,reasonNote,color,class:clazz,subClass,count,boss,zone,note,time
  logDao.search({
    ...req.body
  }).then(({data})=>{
    res.json({
      status: 0,
      data
    })
  })
});

module.exports = router;